package cn.markjoy.springbootrabbit.rabbit.consumer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author zhaojiandong
 * @date 2018/9/3
 * @Description
 */
@Component
@RabbitListener(queues = "testQueue")
@Slf4j
public class rabbitListener
{

    @RabbitHandler
    public void process(String hello)
    {
        log.info("====================== Queue messgae has been consumed ======================");
        log.info("================" + hello + "===========================================");
    }

}
